import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import 'package:flutter_mall/pages/goods/goodsDetail.dart';
import 'package:flutter_mall/pages/index.dart';

var emptyHandler = new Handler(
    handlerFunc: (BuildContext context, Map<String, List<String>> params) {
      return Index();
    });

var indexHandler = new Handler(
  handlerFunc: (BuildContext context,Map<String,List<String>> params) => Index()
);

var goodsDetailHandler = new Handler(
  handlerFunc: (BuildContext context,Map<String,List<String>> params) {
    return GoodsDetail(id:params['id']?.first);
  }
);